package com.csii.oauth.exception;

import com.csii.core.api.Result;
import org.springframework.http.ResponseEntity;

/**
 * @Description TODO
 * @Date 2020/10/16 13:42
 * @Created by Ian
 * @Contact: 19107614@qq.com
 */
public interface ExceptionOutput {
    ResponseEntity<String> outputAuthException(Exception mes);

    default  ResponseEntity<String> outputFeignException(Exception mes){
        return ResponseEntity.ok(Result.noauth(null).toString());
    };
}
